Fixed exception when a gameless connection is closed.