Fix Err_Connection_Closed error on Windows 10