Partial Commit for handling if the file is not a valid file.