apps/gl: Call glfwTerminate() before exiting.

See if this eliminate some false failures I'm seeing in some test slaves.