public synchronized void stop() {
        if (isRunning()) {
            socket.get().close();
            socket.set(null);
            deliverLifecycleAnnouncement(logger, false);
        }
    }
public synchronized void stop ( ) { if ( isRunning ( ) ) { socket . get ( ) . close ( ) ; socket . set ( null ) ; deliverLifecycleAnnouncement ( logger , false ) ; } }
Stop listening for beats.