wait_for_messages dies if recieved EOF. subscribe commands trigger reconnect.