Don't terminate the app on glwtQuit
Fixed core profile window hints
Fixed uninitialized window on error.
Set the context's view *after* creating the ctx.
Mark window as clsoed even when there is no callback.
Don't hide window at the end.

The window may have been closed already (-> segfault)
Add glClear test.