remove runtime exceptions from Win32Stream