Fixed thread related crashes in OutputRenderCallback