Made is so that the network hostGame exits on leaving the menu