Avoid crash when receiving unexpected channel close packet