fix #492
exit gracefully if host cannot be resolved. Fixes #488
During wallet creation, do not write seed on disk before it is encrypted
replace exit with sys.exit