Remove the tab from the tab list when closing a tab