Make sure we won't loop the list of remaining hosts more then once.