finish downloadpages.rb