Issue #1810990 by sun, chx, Berdir: Fixed Teared down test environment leaks into parent site/test runner.