Make task routine return a result. Start task cancel implementation.