public void Kill() { #if !NETFX_CORE TrackedThread.Abort(); #endif lock (taskMutex) { tasks.Remove(this); } }