fix exception check for syslog/logger require