Sometimes processing fails due to issues with the input file. This should be handled properly, e.g. 