committing changes before laptop shuts down