Fixed exiting without committing updates