diff --git a/pytest_django_testing_postgresql.py b/pytest_django_testing_postgresql.py
index 7139b667f6f7ab306ed24b685e62d8447e40331a..c6ed64e8c3d8ed040c6d82b29e21a8d23df6b400 100644
--- a/pytest_django_testing_postgresql.py
+++ b/pytest_django_testing_postgresql.py
@@ -12,3 +12,6 @@ _POSTGRESQL = Postgresql()
 def pytest_load_initial_conftests(early_config, parser, args):
     os.environ['DJANGO_SETTINGS_MODULE'] = early_config.getini('DJANGO_SETTINGS_MODULE')
     settings.DATABASES['default'] = parse(_POSTGRESQL.url())
+
+def pytest_unconfigure(config):
+    _POSTGRESQL.stop()