If one cancels the password prompt that's shown after starting a paper key export in Kleopatra then gpg exits with a General error (see T7373). Kleopatra doesn't notice this because gpgme seems to ignore the failure.
$ gpg --version gpg (GnuPG) 2.4.6-beta102 libgcrypt 1.11.1-beta31 $ gpg --status-fd 2 --export-secret-keys 98111E67AE06F2BEFD2BDE10C5D6C919005F36A4 gpg: NOTE: THIS IS A DEVELOPMENT VERSION! gpg: It is only intended for test purposes and should NOT be gpg: used in a production environment or with production keys! [GNUPG:] KEY_CONSIDERED 98111E67AE06F2BEFD2BDE10C5D6C919005F36A4 0 [GNUPG:] PINENTRY_LAUNCHED 88217 qt 1.3.2-beta4 /dev/pts/24 xterm-256color :0 20600/1000/5 1000/1000 0 -> pinentry is shown -> click Cancel gpg: key 7A62F95F55D026E06FD7449D6830D395AB44665E: error receiving key from agent: Operation cancelled - skipped gpg: WARNING: nothing exported [GNUPG:] EXPORT_RES 1 1 0 [GNUPG:] FAILURE gpg-exit 33554433