@Override
  public void finalize() throws Throwable {
    cleanRawStore();
    super.finalize();
  }
Add any Thread specific garbage cleanup code here.
Currently, it shuts down the RawStore object for this thread if it is not null.
service/src/java/org/apache/hive/service/server/ThreadWithGarbageCleanup.java