Throw CLI errors

Otherwise, the process will fail silently – throwing the error
will display the message and stack trace, making it debugging
much simpler.
Merge pull request #59 from hughsk/patch-1

Throw CLI errors