Fix error handling in Base.install and YumBaseCli.installPkgs.