Cleanup of response handler