Generating runtime error when running the program fails to produce some of the files.