when I see number of `cmd.retcode() != 0` maybe it can be useful to add method `cmd.failed()` that do this check. Code then look better with this helper.