TAdvOfficeMDITabSet - Close Tab Programatically

I am using the TAdvOfficeMDITabSet component and I am wondering how I can programatically close a tab.

I Have tried just closing the associated MDI Child but the tab stays visible.

Never mind, there was a bug in my code. Closing the child form works perfectly.