FWIW, most places in the database backends that open a cursor for a check like this don't explicitly close it (e.g. the ``supports_transactions`` check). Definitely worth fixing, but would make just as much sense to do across the board in a separate commit.