Before I knew better, I would live edit code directly on the application server. I had a similar crash, deleting all of the files I had opened at the time, and had to rush to recreate those files to get the service back up.
It was a low-stakes scenario, but...now I know better.