Updated close_others method

No need to check if the tab to be removed is undefined.