Added retry logic to checkResponse and Batch requests for handling failed requests
Added retry logic to checkResponse for handling failed requests more gracefully. Also added a new addBatchWithRetries function to support batch requests with retries. Future-proofing for scenarios where requests might fail