detects if processor reset was due to watchdog and if so, prevents lua script from running