Close calls with catastrophe: near-misses that could have ended civilization