Closed the ZMQ sockets in use so that the program actually terminates