Keep track of number of failed downloads. Abort on decode error.