Close watcher on global exit event

Allows clean process exit with autoWatch.