This is a bug I think, you can simulate that by adding some Tabs (ShowCloseButtonOnActiveTab = True) and remove them in both Design time or run time and the last close button doesn’t disappear when the last tab will removed.
Is there a trick or it’s a bug?