private void waitForShutdown() {
        synchronized (signalCaught) {
            while (! signalCaught.get()) {
                try {
                    signalCaught.wait();
                } catch (InterruptedException e) {
                    // empty
                }
            }
        }
        Event.stopping(APPNAME, "shutdown");
        rpcServer.close();
        dispatch.close();
        Event.stopped(APPNAME, 0, 0);
        System.exit(0);
    }
Sets up the listen port and starts the Listener.  Then waits for
Listener to exit.
logserver/src/main/java/com/yahoo/logserver/Server.java