public void Terminate(SessionTerminateType type) { TerminateType = type; IsOnline = false; Socket.Close(); }