The current CLI code needs some better handling of different errors. Most of them are known errors but with poor error messages.