diff --git a/pytest-server-fixtures/pytest_server_fixtures/mongo.py b/pytest-server-fixtures/pytest_server_fixtures/mongo.py
index <HASH>..<HASH> 100644
--- a/pytest-server-fixtures/pytest_server_fixtures/mongo.py
+++ b/pytest-server-fixtures/pytest_server_fixtures/mongo.py
@@ -126,3 +126,8 @@ class MongoTestServer(TestServerV2):
             pass
         return False
 
+    def teardown(self):
+        if self.api:
+            self.api.close()
+            self.api = None
+        super(MongoTestServer, self).teardown()
fix mongoclient exception caused by not closed client