cli: let exceptions flow to the main function
Fix #1888
We properly catch all exceptions in the main function and return
appropriate error codes if anything happens. Don't interfere with this
by handling exceptions in the particular subcommands such as
`build-pacakge' or `list'.