prevent rendering from display snapshot if the graphics device is already closed