I'm using Selenide (Selenium wrapper) + TestNG. The problem that when test is failing, Selenide tries to close all windows (as I understand), but when it happens the modal dialog box is appearing ("confirm quit from page"), and Selenide can't close opened windows...(It is not several IEdrivers in task manager) I tried to accept this modal dialog through many variants, but it was not succesfull.
Give advice, how to handle this modal dialog box and close open windows after failed test?
The solution was to kill all IE processes in task manager by this command
Runtime.getRuntime().exec("taskkill /F /IM iexplore.exe");