Close tabbed when the last tab gets closed