code: @Override
      public void close(byte[] tail) throws IOException {
          synchronized (fileStream) {
              // Cancel timer thread before any method capable of throwing IOException.
              if (flushTimer != null) {
                  flushTimer.cancel();
                  flushTimer = null;
              }
              fileStream.flush();
              fileStream.close();
          }
      }
docs: /*
  (non-Javadoc)
  
  @see com.ibm.ws.logging.hpel.internal.LogFileWriter#close(byte[])