Added flush of log in case of program abort (allign with round_clock_latest_chages)