You could try and compare the data received against the limit.
As soon as the data array length is less you could programmatically stop it.
AFAIK if the last page contains the same amount as the limit provided it shoul return the next page as an empty page, I have yet to have tested this though. Can be easily done by setting the limit to 1