Added heap-stack collision check to watchdog.