Fix for when all listeners are unregistered and the channel is destroyed.
authors: add Eric Anderson