Replacing thread.Abort() - C#