Moved call to watchdog to the end of Main to guarantee all threads where executing before the watchdog call