Delete Tabs try catch