public boolean awaitClose(long timeout, TimeUnit unit) {
        try {
            closeTask.get(timeout, unit);
            return true;
        } catch (TimeoutException e) {
            return false;
        } catch (Exception e) {
            throw e instanceof RuntimeException ? (RuntimeException)e : new RuntimeException(e);
        }
    }
<p>Waits for shut down of this TestDriver to complete. This call must be preceded by a call to {@link
#scheduleClose()}.</p>

@param timeout The maximum time to wait.
@param unit    The time unit of the timeout argument.
@return True if shut down completed within the allocated time.
jdisc_core/src/main/java/com/yahoo/jdisc/test/TestDriver.java