@Override
    public void terminate(HostedServiceManager serviceManager) {
        Server server = serviceManager.getServer();
        server.removeMessageListener(delegator, delegator.getMessageTypes());
    }
Used internally to remove the message delegator from the
 server.
jme3-networking/src/main/java/com/jme3/network/service/rpc/RpcHostedService.java