private void EnsureAllBrowserWindowsAreClosed()
        {
            if (!_browserConfiguration.CloseBrowserWindowsOnSetUpAndTearDown)
            {
                return;
            }

            var browserProcessName = _browserConfiguration.GetBrowserExecutableName();

            if (browserProcessName == null)
            {
                return;
            }

            ProcessUtils.KillAllProcessesWithName(browserProcessName);
        }