exit wait_until_connected() when all servers have been tried