synchronized void close(boolean removeLog) {
      try {
        resetIn();
        if (removeLog && !isRemoved) {
          if (file.exists()) {
            FileUtils.forceDelete(file);
          }
          isRemoved = true;
        }
      } catch (IOException e) {
        LOG.error("Failed to remove corresponding log file of operation: {}", operationName, e);
      }
    }
Close the logs, and remove them if specified.
@param removeLog If true, remove the log file
ql/src/java/org/apache/hadoop/hive/ql/session/OperationLog.java