ScheduledExecutorServiceTimer is now trait ScheduledExecutorServiceTimerSupport, which provides a hook to be called on task cancellation. ScheduledThreadPoolTimer extends this hook and being intimately familiar with ScheduledThreadPoolExecutor, removes the runnable from the executor's queue to prevent retention of tasks with long delay