code: @Override
      public synchronized void shutdown() {
          try {
              if (open) {
                  open = false;
                  writer.close();
              }
          } catch (IOException e) {
              logger.error("Error shutting down journal log", e);
          }
      }
docs: On the first call to this method, close the log file. Set the flag so no
  more logging calls will be accepted.