make best effort to honor limit parameter when exporting to csv

due to the way scrolling works, we might overshoot the limit a little bit

issue #330