fix timeout chan closed bug