Freeing ContextEGL would attempt to free the context's EGLSurface, which was already freed by the native-window, causing 2x bad-surface errors on exit. Suppress the warning by clearing the surface from releaseNativeHandles when the surface was created by a native window.