Fix window deletion on session deletion