public void Dispose()
{
try
{
if (!this.Stopped)
{
throw new InvalidOperationException("Cannot dispose of a session that has not been stopped");
}
Console.WriteLine("Disconnected Connnection [ID: " + this.Id + "] and their associated resources.");
}
catch (Exception exception)
{
Console.WriteLine("[Dispose] " + exception.Message);
}
}