Deal with notifing thread tab close event.