# File lib/directory_watcher.rb, line 504
  def stop
    return self unless running?

    @scanner.stop
    self
  ensure
    persist!
  end