Closing (flatpak) Mailspring fails and eats all CPU

Actually this is not Flatpak related, the same happens with RPM package for me in 1.19.0.
Same issue reported later by another user: