Exit if the retry to the max retries.