The spawned servers are terminated by the client program when the client makes a normal exit. The initial server program does not terminate when its clients terminate, so if you want to shut down this server you must do so manually.