Whenever ancient Chinese empire suffered a setback, standard Confucian advice to the Emperor was "you ought to be perfecting your rule". But then, China has a long tradition of civilization.
Yup, they were so civilized they ate the Polynesian population of Taiwan, whom they considered subhumans. I also loved that decree that any Chinese male who lost his top knot lost his head. Now that's civilization for you.