While downloading, keep track of number of failures