Cleanup the OpenGL context when consumer stops.