Add API reconnect retry support