✅ how to stop the task in this case? - C#