catch and raise any file errors encountered whilst downloading