A good ruler by definition needs to be good at leaving something besides problems for his successors, and someone bad at ruling isn't likely to establish much of an empire - see Alexander's miserable failure.
Even someone good at rulin in their time can leave a huge mess after. See Shah Jahan for an example of this.