fixed storing of settings when exiting (worked for logout only)