network manager still listening even in singleplayer

I don’t know how to somehow disable the networking manager, because I want to have a singleplayer mode, but when I test the singleplayer I get an error that network manager is listening and I have to start a server and the game breaks. But I don’t want it to listen, I tried destrying the gameobject that has the networkmanager attached to it nad even the shutdown command and nothing worked. What do I have to do to disable it?

I found out I have to add network prefabs to the network manager at runtime, depending on whether it’s a singleplayer or multiplayer session. Doing so fixed the problem.