Is there a way to have the editor reopen your windows even after a "crash"?

I have my editor set up to reopen windows from the last session when starting up. The problem is that after a crash, (or in my case, stopping the debugger), it doesn’t save them. The next time I load, nothing will be open.

Is there any way to have the editor still remember the open windows even after a crash/hard shutdown?