implement network cleanup