Run inserts in the database in a separate thread to fix the mt-db-access problem.
Cleanly shut down the network listeners and db storage before creating the reports.