Fix network cleanup