close chan to signifiy done