I have four tabs using the latest AngularStrap tab, every tab has a close button, and every tab pane using the latest ui-grid.
AngularStrap
ui-grid
When you splice from the array the indices change because the element is removed so $rootScope.tabs.activeTab = $rootScope.tabs[index].title; doesn't align anymore;
$rootScope.tabs.activeTab = $rootScope.tabs[index].title;