Clear data on logout. Fix crash when not synced.