Fixed shutdown crash with ZTS on Win32

Сверху