China closes down thousands of factories