We only need to preserve the log file anyway. (cherry picked from commit c5971107d5ac03129a6e7480aef79bfa8d57c2f3)