try { logFile.close(); } catch (Exception e) { System.out.println("Exception closing log file: " + e);
synchronized (logFileLock) { try { logFile.close(); } catch (Exception e) { System.out.println("Exception closing log file: " + e); }
  public void closeLogFile() {    try {      logFile.close();    } catch (Exception e) {      System.out.println("Exception closing log file: " + e);    }  }