code: public synchronized void stop() {
  
          _coreMonitor.unregister();
  
          for (ServiceReg<FileMonitor> reg : _monitors.values()) {
              reg.unregister();
          }
  
          _monitors.clear();
  
          // Tidy up old location if we built it
          tidyUpMonitoredDirectory(createdMonitoredDir.get(), monitoredDirectory.get());
      }
docs: Stops the service and all applications started by it