Throw error on sync failure