Both messagelib and mailcommon also use the same Akonadi Server test framework which doesn't exit properly. All of these hanging cases are likely ultimately the same bug sadly.
CCMAIL: kde-pim@kde.org