Fix InitialiseNetwork calls not matching ShutdownNetwork calls when accepting connections.