Cleaning up entities in application shutdown. Seems like GLUT won't actually use this, so maybe GLUT will have to go.