code: public void await() {
  		if (interrupted.get()) {
  			return;
  		}
  		try {
  			mainLatch.await();
  		} catch (InterruptedException e) {
  			Thread.currentThread().interrupt();
  		}
  	}
docs: Wait until a proper shutdown command is received, then return.