It's at topics like these my standard answer is I'd be surprised if we dont hard code Asimov's Laws. Problem pretty much solved, and we're bound to have EMP technology standing by regardless along with killswitches. Fiction and non-fiction has been over pretty much every single plausible doom scenario a million times now, so to assume that there would be no defense, no contingency plans or anything would be in place, is QUITE naive Fun fact, The US military is rumored to have pre-made plans for nearly every. single. situation. immaginable, (Senator captured by Brazilian druglords, check. Pandemic, Yep. Ravenous undead attacking people, on it's way) and various military forces have apparently begun implementing "zombie scenarios. Even if some of this shit DOES happen, we're gonna be able to fight it, and if not, I honestly do think we deserve being made extinct for being so stupid