Fixed tab close - used tooltip text and iterator.
Signed-off-by:Craig West <craigrwest@googlemail.com>