Fix JDBC connection leak when executing tests on non-H2