public boolean isShuttingDown() {
        return shuttingDown;
    }
Returns true if the server is being shutdown.

@return true if the server is being shutdown.
xmppserver/src/main/java/org/jivesoftware/openfire/XMPPServer.java