Don't leave a window current when removing it

The window may be deleted before any other window is make current,
and that would lead to memory corruption with Mesa's EGL.

Change-Id: I414b972fd517f60c28d194fa059bf7871e422872
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>