close the connection in `read.concat`