Win32: no longer fails when calling swap_buffers on a closed window