Fix ZMQ handshake handling