                              ;; Stick with the reference implementation version for now.
                              (take max-server-attempts (cycle server-ips)))
             (catch Exception ex
-              (log/exception log-state
-                             ex
-                             ::poll-servers!)
-              (assoc this ::log/state (log/flush-logs! logger log-state))))]
+              (assoc this ::log/state (log/exception log-state
+                                                     ex
+                                                     ::poll-servers!))))]
       (assert (::log-state this) "do-polling-loop returned badly")
       (update this ::log/state
               #(log/flush-logs! logger %)))))

                                         "Discarding garbage cooke")]
                 (if (< 0 remaining)
                   ;; Q: Use trampoline instead?
                   (do-polling-loop
                    (assoc this ::log/state (log/flush-logs! logger (log/info @log-state-atom
                                                                              ::do-polling-loop

                                                                             ::do-polling-loop
                                                                             "Got back a network-packet but missing something else"
                                                                             {::cookie-response actual-success}))))
                   (throw (ex-info "Network-packet missing either security or shared-secrets"
                                   actual-success)))
                 (swap! log-state-atom #(log/debug %
                                                   ::do-polling-loop
                                                   "Got back a usable cookie"
