public synchronized void disconnect()
public void disconnect()
    public synchronized void disconnect()    {        if (!running)            return;        JGroupsAddress addr = localAddress;        localAddress = null;        // Close the channel.        if (channel != null)        {            channel.disconnect();            channel.close();            channel = null;        }        listener = null;        running = false;        notify();        log.info(addr + " disconnected.");    }