Handle encryption / decryption exceptions gracefully.