Delete the gl context and the window with the renderer.