fixed bug: watchdog timeout causes bad exception.

windows 32/64 bit build