Make sure the channel is not closed