ensures the report is printed even if the computation is stopped