Clean up cancellation patterns in callbacks.