code: def stop(self):
          
          with self._status_lock:
              if self._running:
                  assert self._observer is not None
                  self._observer.stop()
                  self._running = False
                  self._origin_mapped_data = dict()
docs: Stops monitoring the predefined directory.