@Override
    public void stopHostingOnConnection( HostedConnection hc ) {
        RpcConnection rpc = hc.getAttribute(ATTRIBUTE_NAME);
        if( rpc == null ) {
            return;
        }
        if( log.isLoggable(Level.FINEST) ) {
            log.log(Level.FINEST, "stopHostingOnConnection:{0}", hc);
        }
        hc.setAttribute(ATTRIBUTE_NAME, null);
        rpc.close();
    }
Removes any RPC hosting services associated with the specified
 connection.  Calls to getRpcConnection() will return null for
 this connection.  The connection's RpcConnection is also closed,
 releasing any waiting synchronous calls with a "Connection closing"
 error.
 This method is called automatically for all leaving connections if
 autohost is set to true.
jme3-networking/src/main/java/com/jme3/network/service/rpc/RpcHostedService.java