close chan when we are done with it