public void CloseConnection(byte connectionId)
{
// if this is id is in our list of local connections
if (_tcpConnections.IsLocalOpenConnection(connectionId))
{
// we close the connection (if its in the process of being closed, this will do nothing)
_tcpConnections.GetLocalOpenConnection(connectionId).Connection.Close();
}
}