cleanup (dead code)
print traceback in waiting dialog
fix add_keypairs: support old wallets