Close the framebuffer/renderwindow should work.

Regards,