Fixed graphics function crash when unable to catch errors