Avoid use-after-free when channel inithandler fails. Thanks to Coverity