Chekc for guid and sharedKey rather than app.wallet
clearDelegates before nulling self.wallet
Merge