Canceling a task in an executor

Change-Id: Ife1c719e72cb45bcfa1c8ea03e97aca70dc8c8c3