Replace zmq_ctx_destroy with zmq_ctx_term.