User preferences are now saved when the user exits the application.