Fixed memory leak on zmq_sendmsg failure

- when this call fails, caller has to use zmq_msg_close() to
  avoid memory leak on messages larger than 30 bytes