improved zabbix inventory

added sys.exit(1) where needed, added some exception handling.