Raise the error if we reached the retry limit