added try catch

added try catch, skips files on error