catch exceptions associated with file import