finish randomwalk and logging to output files