Add agent request cancellation plumbing.