Fix NPE generated on networkShutdown().

Signed-off-by: Mike Howe <dockter@almuramc.com>