@Override
    public void close() throws Exception
    {
        stopAcceptThread();

        stopProcessingService();

        if (server != null) {
            server.close();
            server = null;
        }
    }
Stops accepting socket connections and halts processing of data.
xmppserver/src/test/java/org/jivesoftware/openfire/session/RemoteReceivingServerDummy.java