SUMMARY Under certain conditions I am not sure how to reproduce reliably, but can describe, the KMail process will not exit after Ctrl+Q. All windows close, but the process stays running in the background. This usually happens after selecting an email that, for reasons unknown, fails to be displayed. The KMail message window says it's fetching the email (from an offline-cached IMAP account, so there's nothing to be fetched) and stays there forever. No amount of time waited will get it out of this condition. STEPS TO REPRODUCE 1. Cause the condition. 2. Exit KMail by Ctrl+Q, File > Exit or clicking the X button at the top right OBSERVED RESULT KMail windows close, but process stays running in the background. Forever. EXPECTED RESULT KMail process exits within reasonable time (less than 15 seconds). SOFTWARE/OS VERSIONS openSUSE Tumbleweed 20200701 Qt: 5.15.0 KDE Frameworks: 5.71.0 kf5-config: 1.0 ADDITIONAL INFORMATION Hypothesis for the fault is the same as bug #424244: an Akonadi::Job fails to finish, holding the reference count up from 0. In fact, using the Akonadiconsole's job tracker, I can see there's a job that never finishes. That is, by itself, a bug. But KMail needs to exit even if there's a valid reason for the job to take a long time (say, you've clicked on an email with a Blu-Ray attached on an online-IMAP account).