commit before restart