Made the index sync more robust by catching and displaying errors instea...

...d of crashing the whole sync.