Fixed issue closing search result tabs.
Cleanup.