Correct exit code

Exit code 0 should only be used when the program is successful.