[Mod] program now will exit when failed to create output file