Committing and syncing before laptop dies