Fix issue where emptying wallet did not occur because sendCoin was nopt called