Commit everything before restart.