Add confirmation alert for closing tab, with corresponding option to disable this feature in the settings.