diff --git a/dotnet/src/webdriver/WebDriver.cs b/dotnet/src/webdriver/WebDriver.cs index 6c7965a3f7952..6125490529a39 100644 --- a/dotnet/src/webdriver/WebDriver.cs +++ b/dotnet/src/webdriver/WebDriver.cs @@ -62,8 +62,15 @@ protected WebDriver(ICommandExecutor executor, ICapabilities capabilities) } catch (Exception) { - // Failed to start driver session, disposing of driver - this.Quit(); + try + { + // Failed to start driver session, disposing of driver + this.Quit(); + } + catch + { + // Ignore the clean-up exception. We'll propagate the original failure. + } throw; }