show pid in log messages
exit from watcher thread if shutdown is pending