Added a timeout to the zmq messages.