final HtmlPage htmlPage = (HtmlPage) page;
if (!htmlPage.isOnbeforeunloadAccepted()) {
LOG.debug("The registered OnbeforeunloadHandler rejected the window close event.");
return;
}
htmlPage.cleanUp();
}
destroyChildren();
getWebClient().deregisterWebWindow(this);
}