eliminate channel close crash