Fixed graphics test so no crashing on quit