Include retry number on connect loop errors