closing zmq sockets and context