Fixed exception logging in watchdog.