Add closed window checks in restacking requests
If a closed window is restacked, it will be reintroduced to the stack and it will be left dangling, which will eventually result in a crash.
If a closed window is restacked, it will be reintroduced to the stack and it will be left dangling, which will eventually result in a crash.