JAX-RS AsyncResponse\'s CompletionCallback and ConnectionCallback allow for the cleanup of resources after a response is completed or dropped.