Add gfx end and quit