Fix error handling in Base.remove and YumBaseCli.erasePkgs.