close channel on timeout