make sure that the timer exists before trying to cancel it