prevent IllegalStateException: Timer already cancelled.