simple main thread watchdog