ChronopicWindow.SerialPortsCloseIfNeeded C# (CSharp) Method