WIN32 - fixed memory leak when threads fail