Researchers have worked out the safest, most resilient country to be in during an apocalyptic event.