watchdog and crash detector program