What did the Qing dynasty attempt to do n the face of civil unrest