replaced the deprecated function zmq_ctx_destroy with
zmq_ctx_term