Terminating subscribed service

Hi All,
We have an issue with the services we use in publish and wait. In our publish and wait model,

  1. we publish a document with x sec wait time.

  2. Client subscribe the document and based on the content of the document invokes another service.

  3. Once the wait time is over the publishing service proceeds for the next step, but the client still executes as it waits to get the response from the service it invoked.

I’m wondering is there any mechanism to kill the client and its invoked service once the wait time is over. on the publishing service.