Fix : close websocket on session expired / windows closed.