glutMainLoopEvent() was not closing windows properly.