Issue #1979434 by corvus_ch: Prevent exceptions from being logged twice if watchdog and exception handling is enabled.