# Katalon freezes during WebUI.closeBrowser()

**URL:** <https://forum.katalon.com/t/katalon-freezes-during-webui-closebrowser/11183>\
**Category:** Miscellaneous\
**Created:** [May 25, 2018, 9:16pm UTC](https://forum.katalon.com/t/katalon-freezes-during-webui-closebrowser/11183 "2018-05-25T21:16:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Laurent\_Lemire](https://avatars.discourse-cdn.com/v4/letter/l/f19dbf/32.png) [@Laurent\_Lemire](https://forum.katalon.com/u/Laurent_Lemire)\
**Post date:** [May 25, 2018, 9:16pm UTC](https://forum.katalon.com/t/katalon-freezes-during-webui-closebrowser/11183/1 "2018-05-25T21:16:25Z")

</div>

In some of our page, when we try the close the browser a pop-up will appear ( ![](https://s3.amazonaws.com/katalon-forum/editor/m1/4bm4d9anft67.png "Image: https://s3.amazonaws.com/katalon-forum/editor/m1/4bm4d9anft67.png"))Obviously, we want to keep that feature, but because of it, when we try to close the browser, the pop-up will appear and Katalon will be stuck in the WebUI.closeBrowser() step forever or until someone accept the alert

Here is a screenshot of the Katalon logViewer : ![](https://s3.amazonaws.com/katalon-forum/editor/oz/f050dwr1125m.png "Image: https://s3.amazonaws.com/katalon-forum/editor/oz/f050dwr1125m.png")  
Katalon stays frozen like this until someone accepts the pop-up.

The tricky part is that the pop-up will not appear until we close the browser so it stops the WebUI.closeBrowser() step, is there a way to specify to always accept alert when exiting the browser, or maybe is there a way that will force quit the browser.

To specify: this issue is only present on Firefox and Edge, chrome is working fine.

[Capture.PNG](https://s3.amazonaws.com/katalon-forum/editor/oz/f050dwr1125m.png)

[Captur2e.PNG](https://s3.amazonaws.com/katalon-forum/editor/m1/4bm4d9anft67.png)

---

<div class="post-metadata">

**Author:** ![karkuu](https://avatars.discourse-cdn.com/v4/letter/k/ac91a4/32.png) [@karkuu](https://forum.katalon.com/u/karkuu)\
**Post date:** [June 25, 2018, 12:02pm UTC](https://forum.katalon.com/t/katalon-freezes-during-webui-closebrowser/11183/2 "2018-06-25T12:02:07Z")

</div>

Here using `WebUI.closeWindowIndex(index``) worked as a workaround.`
