catch error in pgp decryption