cleanup and generate final report