protected void showServerDown() {
        try {
            response.sendRedirect("error-serverdown.jsp");
        }
        catch (Exception ex) {
            ex.printStackTrace();
        }
    }
Stops the server then sleeps for 3 seconds.
xmppserver/src/main/java/org/jivesoftware/util/WebManager.java