Catch and log exceptions when syncing indexes

I'm not a 100% sure this is the right way to go about this but we have had some problems with differences between local environments and the production env regarding old indexes.

When we sync to the local env, inserting certain indexes might throw an error due to it being incompatible with the local mongodb version.

While this is not a huge problem this patch rescues such errors and displays them after the syncing is complete.