@Override
        public void processContext(ServerContext serverContext, TTransport input, TTransport output) {
          ThriftCLIServerContext context = (ThriftCLIServerContext) serverContext;
          currentServerContext.set(context);
          context.incMessagesProcessedCount();
        }
This is called by the Thrift server when the underlying client
connection is cleaned up by the server because the connection has
been closed.
service/src/java/org/apache/hive/service/cli/thrift/ThriftBinaryCLIService.java