Needed teardown implemented to cleanly close zmq socket