OpenGL static objects destruction crahes

I’ve had situations in which OpenGL obejcts get destroyed after main thread exits, in which case the destruction crashes. Specifically the static ofVboMesh gradientMesh in ofGraphics.cpp.

It’s hard to reproduce this issue but shouldn’t it be avoided to have static OpenGL objects? I wanted to consult here first before posting an issue on github.