If I had a product, I wouldn't want it being used for war either. Know how id handle it? By not accepting millions from the Pentagon in the first place
So if the country you lived it was being invaded, would you turn off the Internet in your country to prevent acts of war in the form of defensive operations?
If the country I lived in was being invaded they'd end civilization with their stockpile of 3000 or so nuclear warheads. Would I help them do that? No.