public void PrettyPrintShutdownReport()
{
if (ShutdownReport.Count == 0)
{
Console.Error.WriteLine("No errors reported when closing connection {0}", this);
} else {
Console.Error.WriteLine("Log of errors while closing connection {0}:", this);
foreach(ShutdownReportEntry entry in ShutdownReport)
{
Console.Error.WriteLine(entry.ToString());
}
}
}