code: @Override
    public void handlerRemoved(final ChannelHandlerContext ctx) throws Exception {
      if (responseContent != null && responseContent.refCnt() > 0) {
        responseContent.release();
        responseContent = null;
      }
    }
docs: Once the handler is removed, make sure the response content is released and freed.