A bit of an antique. The good old starcalcafter installing some other software in the system, there was a problem with closing (and saving the settings). After some troubleshooting it turned out that before the hang it sends a global SendMessage and some software won't respond. The solution is obvious - change SendMessage to PostMessage, not waiting for a response. You need to replace byte D9 with 69 at address 9887B.
And the whole folder starcalc, with plugins — https://disk.yandex.ru/d/HL4pO27CZy4eiQ