public void stop() {
        try {
            getXMPPServer().stop();
        }
        catch (Exception e) {
            Log.error(e.getMessage(), e);
        }
        sleep();
    }
Stops the server then sleeps for 3 seconds.
xmppserver/src/main/java/org/jivesoftware/util/WebManager.java