make zmq wait_valid() more error-proof
make zmq wait_valid() more error-proof

virtdb/virtdb-utils,starschema/virtdb-utils,starschema/virtdb-utils,virtdb/virtdb-utils,virtdb/virtdb-utils,starschema/virtdb-utils,virtdb/virtdb-utils,starschema/virtdb-utils