add detection of incomplete downloads and retry for them.