Hours after expressing hope that the Taliban will form an "open and inclusive" Islamic government and ensure a smooth transition in Afghanistan, China has warned the Afghan militant group against the country once again becoming a "haven" for terrorists.