Add error logging and error checking to direct reindexing