exitFailure on error

Exit with returncode 1 on error, eg. file not found.