retries 4 times when a resource cannot be retrieved