code: public synchronized void stop() {
  		if (writer != null) {
  			try {
  				writer.close(headerBytes);
  				writer = null;
  			} catch (IOException ex) {
  				// No need to crash on this error even if the tail won't be written
  				// since reading logic can take care of that.
  			}
  		}
  		// Ensure that timer is stopped as well.
  		disableFileSwitch();
  		
  		headerBytes = null;
  		// Don't stop manager here since it can be reused for a different repository writer.
  		//manager.stop();
  	}
docs: Stops this writer and close its output stream.