Handle closed channel without bogus vars

Somtimes, the answer is so simple...