code: @Override
      public void channelInactive(ChannelHandlerContext ctx) throws Exception {
          super.channelInactive(ctx);
  
          if (currentMessage != null && currentMessage.getExtras() != null) {
              if (currentMessage.getExtras().refCnt() > 0) {
                  currentMessage.getExtras().release();
              }
          }
  
          if (currentMessage != null && currentMessage.getFramingExtras() != null) {
              if (currentMessage.getFramingExtras().refCnt() > 0) {
                  currentMessage.getFramingExtras().release();
              }
          }
  
          resetDecoder();
      }
docs: When the channel goes inactive, release all frames to prevent data leaks.
  
  @param ctx handler context
  @throws Exception if something goes wrong during channel inactive notification.