avoid calling renderFrame after stop