Make SNMP trap handler more robust and add support for IPMI traps