Tabs processing changes.
Fix removing terminal tabs on drag'n'drop.
Fix closing tab on session end. Fix popup for editor terminal tabs.