Fix re-open journal if rename fails
Created by: sgraves66
If journal rename fails, the fd becomes invalid and journal processing will never recover. Antivirus software on Windows causes the rename to intermittently fail.
- Added 5 retry attempts on failed rename
- Check for invalid handle before trying to close