Leaders in China and Japan decided to cut off contact with other countries because they wanted to preserve their traditions and avoid conflicts. Two results of this decision were that they lacked in modernization and the development of technology. They would not be prepared for war when other developed countries invaded.
Hope this helps!