This way, even if the program exits unexpectedly, there's a reasonable value for the "end time" of a log.