# File lib/mongo/cluster/periodic_executor.rb, line 68
      def stop!(wait=false)
        begin; flush; rescue; end
        @thread.kill
        if wait
          @thread.join
        end
        !@thread.alive?
      end