code: def _close_remaining_channels(self):
          
          for channel_id in list(self._channels):
              self._channels[channel_id].set_state(Channel.CLOSED)
              self._channels[channel_id].close()
              self._cleanup_channel(channel_id)
docs: Forcefully close all open channels.
  
          :return: