use correct exit code