speedup shutdown by using cancelation token