If a dialog is opened while a script is executing, we must give control back to the WebDriver client. The script must also continue executing though, so once it completes, we ignore its result.