Wait after TabClose/SSTabRestoring for something like this: https://gist.github.com/4609543