added logging for cli exceptions