Fix ERR_CONNECTION_CLOSED error on Windows 11/10