Added a check to ExecutorServiceAsTaskExecutor to ensure more eager cancellation.