Move report-writing to the end.
Merge pull request #4 from oddbird/just-write-report-once

Move report-writing to the end.