do not set exception handler if logging is disabled