Fix traceback when tearing down network.

Fix traceback when tearing down network.

Signed-off-by: Chuck Short <chuck.short@canonical.com>