fix bug in zeromq binding where assertion error hit on shutdown because an attempt is made to read the socket after it is closed