slightly better error handling for failed downloads