Added exception handling so sync can recover from errors