Add infrastructure for cancellation.
Implement cancellation of timers.