Added exception handling for GPG_AGENT_INFO