Maybe you should throw the error here if the error code is not `PROTOCOL_CONNECTION_LOST`?