Fix crash when/if gpg-agent dies.