Adds a call to recreate the connection on a 401 exception. This seems to have worked, as displayed by the output file showing 401 errors being overcome (unfortunately, other unrelated errors kept the count from completing).