cleanup; close the writers after opening a reader on them; prepare for actually storing the indexes