Repository is closed after reading.