docs: public void stop() {
        counterCacheStarted.set(true); //avoid starting the counter cache if it hasn't started yet
        if (listener != null && stateCache != null) {
           stateCache.removeListener(listener);
        }
        listener = null;
        stateCache = null;
     }