It appears that it will serialize all messages, until the first one that does not validate, or none, if there are unflushed tracebacks.