Wait for process alive watcher thread when stopping services.