I'm having to deal with this in the `ChefDK::CLI` class tests right now. The approach I'm taking is that the subcommand's `#run` method returns an integer which is used as the exit code. The downside (but maybe benefit?) of this is that you have to put any "early exit" conditions in the run method as `return` statements.