Can you add a `teardown` method that ensures the repository gets closed at the end of the test run? We're not running the test cases regularly on windows, but this is one thing which would cause a test failure if we would do that.