Методы Dispose(), Close(), Quit() не работают доя Firefox, если было вызван popUp: “This page is asking you to confirm that you want to leave - data you have entered may not be saved.”.
Для Chrome отрабатывает нормально.
The only workaround right now which I would see is to navigate away from such a web page before quitting the driver. That should also remove the alert.