Ensure cancellation works properly.