call zmq_errno as soon as possible

avoids errno being clobbered by other operations before it's retrieved