Use another variable to check if the renderer thread should die