class HttpContentDecoder extends MessageToMessageDecoder<HttpObject> {

    @Override
    public void channelInactive(ChannelHandlerContext ctx) throws Exception {
        cleanupSafely(ctx);
        super.channelInactive(ctx);
    }

}