Added retry to connectclient