Update handler for closing browser.