[PDI-10744] - Handle dirty tab and closing of tabs on disconnect