private async void KeepRunning() { do { EnsureRunned(); await _process.WaitForExitAsync(); } while (Active); }