Stop timer when endDraw finished