code: @Override
    public void channelInactive(ChannelHandlerContext ctx) {
      Status status = Status.UNAVAILABLE.withDescription(
          "Connection closed while performing protocol negotiation for " + ctx.pipeline().names());
      failWrites(status.asRuntimeException());
    }
docs: If this channel becomes inactive, then notify all buffered writes that we failed.