fix for watchdog restarting threads