Better handling of sync callback errors.