Updated watchdog to exit if process being watched dies.