添加  IDisposable
diff --git a/src/Apache.IoTDB/DataStructure/SessionDataSet.cs b/src/Apache.IoTDB/DataStructure/SessionDataSet.cs
index 60240c4..2d2d897 100644
--- a/src/Apache.IoTDB/DataStructure/SessionDataSet.cs
+++ b/src/Apache.IoTDB/DataStructure/SessionDataSet.cs
@@ -6,7 +6,7 @@
 
 namespace Apache.IoTDB.DataStructure
 {
-    public class SessionDataSet
+    public class SessionDataSet: System.IDisposable
     {
         private readonly long _queryId;
         private readonly string _sql;
@@ -306,6 +306,17 @@
                     _clientQueue.Add(myClient);
                 }
             }
-        }
+        }

+        ~SessionDataSet()

+        {

+            this.Dispose();

+        }

+

+       

+        public void Dispose()

+        {

+            this.Close().Wait();

+          

+        }

     }
 }
\ No newline at end of file