Add hooks for resetting data on sync failure