Don't use cached closed tabs count to avoid errors in case of changes
Increase delay for "TabClose":
someone may call nsISessionStore.forgetClosedTab() on this event