Who did the Ming cut off all relations with?