Catch and log the possible exception throw by create index.
Refactor the file system providers.