[NB] Fix memory leak in zmq RPC proxy

[NB] Fix memory leak in zmq RPC proxy, where the socket and context were
not being freed.