We kill popups and modal dialogs in the browser when the page is navigated, done the same here by killing frontWindow