Adding a listener for response close events.

For details about the issue that this PR aims to fix, please refer to [AGPUSH-337](https://issues.jboss.org/browse/AGPUSH-337)