Do not try to get audit log for erroneous contexts
Review Request #124175 - Created June 25, 2015 and submitted
On error gpgme closes the assuan context of the gpgme context.
Calling getAuditLog on a closed context leads to a crash. (At least with gpgme 1.5.5)
It's likely that previous versions of gpgme handled this more gracefully. But the behavior is undefined.
Looking at an S/MIME Encrypted mail for which I did not have the key triggered this reliably.
The crash can also be reproduced by canceling the pinentry dialog when decrypting an S/MIME mail.