override willTerminate to make sure if we have an active timer to save its data before the app quits.