Fixing broken prefs save on exit from exit changes.