   (close [self]
     (when truncate-on-close
       (truncate-spy-tables self))
-    (.close alia-session))
+    (shutdown-session-and-cluster alia-session))
 
   KeyspaceProvider
   (keyspace [_] keyspace)

       (h/->raw statement)))
   opts))

(defnk ^:private create-alia-session*
  [contact-points
   datacenter

  (execute-buffered [_ statement opts]
    (execute-buffered* alia-session statement opts))
  (close [_]
    (shutdown-session-and-cluster alia-session)))

(defnk create-session
  [contact-points datacenter keyspace :as args]
