Made the index sync more robust by catching and displaying errors instead of crashing the whole sync.