Make the timer task cancelable.