Cleanup + export report-result function