Wrap log file rotation in a try block.
Wrap log file rotation in a try block.

PiperOrigin-RevId: 187207883

pinterest/tulsi,bazelbuild/tulsi,pinterest/tulsi,pinterest/tulsi,bazelbuild/tulsi,bazelbuild/tulsi,bazelbuild/tulsi,bazelbuild/tulsi,pinterest/tulsi,bazelbuild/tulsi,pinterest/tulsi,pinterest/tulsi