Fixed gpg error handling to be clearer.