Fixed detection of remote channel close.