fix bug of csvtojson cli does not exit when using pipe