If the api call fails, jump back to the start of the loop instead of closing the application