added error handling and an log entry if a file is not downloadable.