don't crash if the user shuts down the system while the timer is still running