persistent connection for tcp and zmq outputs