Keep files in case of error if "keepfiles" is true