It was have to be a global catastrophe, and at that point there's honestly probably more important things to worry about. Nevertheless, the blockchain can be rebooted from a checkpoint. This hasn't been done before but there's no doubt it's doable and I'm sure a somebody will put forth a proposal in the coming years for this.