public void Disconnect() { if (Modem != null) { Modem.Disconnect(); } if (Transport != null) { Transport.Close(); } }