Suppress debug assertion failure when script closes the page.