Return exit code 1 on error