Dispose text on tab close.