catch sync errors