Fix log failure after reexec.