Workaround for Win32 process termination issues