protected void Reconnect()
{
if(this.connection != null)
{
// Close the prev connection.
this.connection.Close();
this.connection = null;
}
this.session = null;
this.connection = CreateConnection(this.TestClientId);
ReconnectSession();
this.connection.Start();
}