fixed: Windows removed context when exiting from a passive window (thanks to M. Raab for the report)