Expanded exception catch scope to prevent batch indexing thread from shutting down.