add func to quit watcher