onFinishedMainProcessing()
This function is called just after the end of the main processing loop and the main work is finished, but the reports still need to be completed.