void BtnAbortCloseClicked() { ENetworkState netState = NetMan.GetState(); Debug.Assert(netState == ENetworkState.Running || netState == ENetworkState.Startup); PreviousNetState = NetMan.GetState(); if (NetMan.IsServer()) { Exp.AbortExperiment(); } NetMan.Close(); }