Added automatic exception handling for sync processing.