Add confirmation window when closing a tab without saving.