def stop
      unless @started
        Spectator.logger.info('Attemping to stop Spectator ' \
          'without a previous call to start')
        return
      end

      @should_stop = true
      Spectator.logger.info('Stopping spectator')
      @publish_thread.kill if @publish_thread

      @started = false
      Spectator.logger.info('Sending last batch of metrics before exiting')
      send_metrics_now
    end
def stop
      unless @started
        Spectator.logger.info('Attemping to stop Spectator ' \
          'without a previous call to start')
        return
      end

      @should_stop = true
      Spectator.logger.info('Stopping spectator')
      @publish_thread.kill if @publish_thread

      @started = false
      Spectator.logger.info('Sending last batch of metrics before exiting')
      send_metrics_now
    end
Stop publishing measurements