public override void WriteEndDocument()
 {
     CheckAsync();
     CoreWriter.WriteEndDocument();
 }