fixed on_channel_closed method.