How the world almost ended