code: protected void handshakeFailure(ChannelHandlerContext ctx, Throwable cause) throws Exception {
          logger.warn("{} TLS handshake failed:", ctx.channel(), cause);
          ctx.close();
      }
docs: Invoked on failed initial SSL/TLS handshake.