@Override
  public void run() {
    try {
      server.serve();
    } catch (Throwable t) {
      if (t instanceof InterruptedException) {
        // This is likely a shutdown
        LOG.info("Caught " + t.getClass().getSimpleName() + ". Shutting down.");
      } else {
        LOG.error("Exception caught by " + this.getClass().getSimpleName() +
            ". Exiting.", t);
      }
      System.exit(-1);
    }
  }
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