private void OnDestroyingMyHardware(Part p) { // This is technically called any time ANY part is destroyed, so ignore it if it's not MY part: if (p != part) return; GetWindow().DetachAllTelnets(); allMyInstances.RemoveAll(m => m == this); }