cleanup exit code with #defines