Added catch for invalid password when decrypting the private key.