Handle bogus std handles on win32.