No need to check if the channel is closed because channelInactive is invoked only when a channel is closed, unlike channelUnregistered.