@VisibleForTesting
  static boolean isRegisteredToDeleteOnExit(File file) {
    return DELETE_ON_EXIT_HOOK.deleteTargets.contains(file);
  }
deregister file from delete-on-exit hook
common/src/java/org/apache/hive/common/util/ShutdownHookManager.java