Preserved proper order of operations to assure failed index writes will cause a rollback
Fixed broken index writing in case we are only seeing the 'seal' mode.