correctly mark the channel as closed