Revisit network cleanup in unit tests.