stop vsync thread on event loop termination