bg render thread quits on shutdown

fixes a small memleak