private void sleep() {
        // Sleep for a minute:
        try {
            Thread.sleep(3000L);
        }
        catch (Exception ignored) {
            Log.trace("Sleep got interrupted.");
        }
    }
Stops the server then sleeps for 3 seconds.
xmppserver/src/main/java/org/jivesoftware/util/WebManager.java