improving error handling such that one failed iteration doesn't prevent future iterations from attempting