Add error checking when importing a wallet from a corrupt file