Finish the task when a request reach its max retries.