Fix destroy of tab menu on close