Implemented tabView:shouldCloseTabViewItem:
Export is now working.