Improved error handling for the Wallet package and minor changes to improve UI and error messages.