I have rarely played any kind of RPG but I read the posts here out of curiosity.

**Background**

A GM has spent weeks or months designing a game world. Well into the game a character invents a nuclear bomb and kills everyone. Of course this is an exaggeration but I think you know what I mean. Basically it spoils the fun and wastes a lot of work by the GM

**Question**

How commonly does someone spoil a game like this and what is the usual response?

Examples
 1. Give up in despair
 2. Sack the player
 3. Start up again just before the disaster
 4. Both of 2 and 3
 5. Something else

EDIT - ADDED to list but I hope not invalidating any answers, is the following. 
6. Persuade the other players/characters to gang up on the miscreant and slay them in game before they can carry out their dastardly plan.

Note: I did my best with the tag. Please add any that are helpful.