public boolean isServerRunning() {
        return !(getPresenceManager() == null || getXMPPServer() == null);
    }
Stops the server then sleeps for 3 seconds.
xmppserver/src/main/java/org/jivesoftware/util/WebManager.java