Tear down the world view when about to close a rendering window.
Tear down the world view when about to close a rendering window.

This prevents OpenGL rendering from occurring without a valid framebuffer.

jfroy/rivenx,jfroy/rivenx,jfroy/rivenx,jfroy/rivenx