Problem using GPanel and child windows in G4P library

I tested it under both Windows 7 (64 bit) and Ubuntu Studio (64 bit), using both the Java AWT and OpenGL. It works fine under WIndows using either renderer, and also under Linux, except when I close the sketch while using OpenGL. Under Linux, I get different error messages when I close the sketch, depending on how I close it (by pressing ESC or clicking on the Exit icon). This may be due to not having a good OpenGL driver installed for Linux, or maybe it’s a problem in Processing itself. I’ve seen a number of posts suggested that the OpenGL renderer is deprecated, but I’m not sure why. But even under Linux using OpenGL, it seems to work fine until I close the sketch.

Attached is one of the error messages I get when closing under Linux using the OpenGL renderer.