public void stop() {
        registry.removeListener(listener);
        listener.unregisterAll();
    }
@Test
    public void cleansUpAfterItselfWhenStopped() throws Exception {
        reporter.stop();

        try {
            getAttributes("gauge", "Value");
            failBecauseExceptionWasNotThrown(InstanceNotFoundException.class);
        } catch (InstanceNotFoundException ignored) {

        }
    }