public boolean isDestroying() {
        synchronized (completionMonitor) {
            return destroying;
        }
    }
For unit test purposes only, not to be used by any external parties.
@return true if destroy() has been--or is being--invoked.
documentapi/src/main/java/com/yahoo/documentapi/messagebus/MessageBusVisitorSession.java