diff --git a/t/lib/HydraTestContext.pm b/t/lib/HydraTestContext.pm
index 3395f0a7..6d15aaa1 100644
--- a/t/lib/HydraTestContext.pm
+++ b/t/lib/HydraTestContext.pm
@@ -118,6 +118,7 @@ sub DESTROY
 {
     my ($self) = @_;
     $self->db(0)->schema->storage->disconnect();
+    $self->{db_handle}->stop();
 }
 
 sub write_file {