code: public void close() {
  		clearBuffers();
  		// make sure we terminate the thread in any case
  		if (outputFlusher.isPresent()) {
  			outputFlusher.get().terminate();
  			try {
  				outputFlusher.get().join();
  			} catch (InterruptedException e) {
  				// ignore on close
  				// restore interrupt flag to fast exit further blocking calls
  				Thread.currentThread().interrupt();
  			}
  		}
  	}
docs: Closes the writer. This stops the flushing thread (if there is one).