http://bugs.winehq.org/show_bug.cgi?id=33331
--- Comment #4 from Dmitry Timoshkov dmitry@baikal.ru 2013-04-04 10:10:48 CDT --- (In reply to comment #3)
A somewhat similar problem is bug 32951 .
Thus it seems, that all threads beside the main tread should be terminated first, regardless where the thread originates from. Then all resources could be unloaded.
When a process terminates freeing resources doesn't make sense and is pure waste of time since the process address space is going to be destroyed.
What libiomp5md.dll does and what is the source of this bug report doesn't make sense either, but since it works under Windows and real world application depends on this then Wine needs to be fixed.