Clean the teardown process of network test Upstream-commit: 219582bba6a316673fddeca50585f5c655041acb Component: engine