When your game is ended by the End is Near signal, you can reload the same save and you are given time to correct your error. Be sure to delete everything about it. No drive, no database, and to play it safe, reset your power systems, too. Then, you should be fine.