Fix for when all listeners are unregistered and the channel is destroyed.