Catch a proper exception in ZabbixDB