I am testing a web app in which when the "Logout" button is clicked, the main browser window gets closed. But before it closing, IE prompts with the message box "The Web Page you are viewing is trying to close the window. Do you want to close this window?"

LoadRunner doesn't see this message box and hence it gets stuck. How can I get this box to be recognized and the 'Yes' button to get clicked.