Max retries is now correctly defaulted to 5 if no config section is
present. Closes #1059