protected void closeEndpoint( UdpEndpoint p ) throws IOException
    {
        // Just book-keeping to do here.
        if( socketEndpoints.remove( p.getRemoteAddress() ) == null )
            return;

        log.log( Level.FINE, "Closing endpoint:{0}.", p );            
        log.log( Level.FINE, "Socket endpoints size:{0}", socketEndpoints.size() );

        addEvent( EndpointEvent.createRemove( this, p ) );
 
        wakeupReader();       
    }
Called by the endpoints when they need to be closed.
jme3-networking/src/main/java/com/jme3/network/kernel/udp/UdpKernel.java