@Override
 public void channelInactive(ChannelHandlerContext ctx) throws Exception {
   try {
     inboundEmitter.complete();
     super.channelInactive(ctx);
   } catch (Throwable err) {
     Exceptions.throwIfFatal(err);
     inboundEmitter.fail(err);
   }
 }