@Override
  protected void finalize() throws Throwable {
    close(true);
    super.finalize();
  }
GC is attempting to destroy the object.
No one references this Hive anymore, so HMS connection from this Hive object can be closed.
@throws Throwable
ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java