print out query name and url so that they are in the output log, then cleanup the files