fixed error where User was occasionally not saving on application exit.