check for closed channel