Humanity should be ready in the unlikely but potentially catastrophic situation in which a comet comes out of nowhere and is heading for planet Earth.