Zmq: more robust deserialization