snmp plugin: add some missing error handling