protected override void OnStop() { foreach (var plugin in Plugins) { plugin.HostShutdown(); } MidiIn?.Close(); MidiIn?.Dispose(); OscOut?.Close(); OscOut?.Dispose(); OscIn?.Close(); OscIn?.Dispose(); }