close browser after tests with alert/confirm dialogs

just in case - to be sure that next will not fail