I wonder if your issue might be connected to what I (still) see here – thought it was fixed, but it isn’t. As I have to use Rosetta to access the Intel API, my thoughts were rather tending towards that reason. But the similarity is both are triggered by an exit – in your case the listbox, for me DeclareLibraryMBS. And it’s happening on exit, even when the thread itself is not running anymore.