only push to queue if not the last page
only retry if its not the last page
handle SIGINT and still write to a file :)