~Renderer causes error when I close screen. Fixed issue by moving contents to pollEvents, but would still like to figure out why it doesn't work.