This will popup an alert when the tab is closed