added close method for super class GLWindow