Process events while rendering. Quit doesn't work tho...