Update app status before calling exit function