setting correct returncode when parsing file fails