@Override
  protected void stopServer() {
    server.stop();
    server = null;
    LOG.info("Thrift server has stopped");
  }
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