correct handling errors in recursive calls of preprocFile
correct handling of errors in recursive calls of preprocFile