Auto-save all files before restarting