public bool GetTerminatedClearInFlight(string url) { lock (this) { if (_inFlight == url) { _inFlight = null; return false; } } return true; }