Exit Code Patch

- Changed xml files so error is reported based on exit code instead of
stderr