https://bugs.winehq.org/show_bug.cgi?id=41138
--- Comment #2 from Ruslan Kabatsayev b7.10110111@gmail.com --- (In reply to Sebastian Lackner from comment #1)
From the description and the apitrace bug report it is not clear to me what exactly calls NtTerminateProcess. If it is the application itself it is expected that exit handlers are skipped. If you have any additional information / analysis what exactly is going wrong, feel free to attach it to the bug report.
Yes, it's the application itself, which returns from WinMain.