Potential fix for keyError crash. Waiting an amount of time if the object is not found and try again