Mastering Retry Logic Agents: A Deep Dive into 2025 Best Practices