properly terminate child processes of watcher