How can I get ember-cli to exit in beforeInstall?

I’d like to do some error checking in my beforeInstall and exit the generate process at that point if the conditions aren’t met.

How do I get ember-cli to stop during runtime?