Closing the connection implicitly closes and invalidates all the channels, so this scenario ought to be prohibited. In other words, an error should be raised ("operation on closed channel") before we get to this point.