added corner case detection for partner disconnect