Allow cancelling a task