People who have been crashing on resize try this build out
some versions of the various openGL drivers out there don't gracefully handle glDeleteTextures(GLint count, GLint *textures) on textures with invalid TexIDs (even glBindTexture does).
that solves the crashing-on-exit and crashing-on-resize.
Also on resize it no longer destroys and recreates the controls, it merely resizes them - this means no disk access/no texture reloads on resize so it resizes smoothly.
Only problem with that is sometimes the openGL window doesn't fully rerender, just rotate the model a tick or something to make it render again.