Force saving the log file on pause and early exit