improved inlineCallbacks cancellation, used in shutdown sequence