change watchdog sys.exit behavior