tabs: remove unused notebooks when tab is removed.