handle failed download
Merge pull request #321 from dwrensha/download-error

don't crash on failed download