index closing in integration tests