In the case of being unable to rename the file, I was returning before the log file was re-opened.