Stop host without kick clients

Please help me with this subject, I really want help, I want that stop hosting without kick any client, by the way, I’m following BRACKIES multiplayer tutorials.

If you stop hosting there is nothing for clients to be connected to. What you are asking for is completely impossible.