Keep track of timer and cancel it on termination.