The `apply` should provide error instead of exit
cli should exit if error
Merge pull request #26 from enb-bem/issue-24

API methods should provide errors instead of exit