HomePhorge

Fix bug where session was destoryed with window close (#7251)