public void Reset() { try { SerialPort.Reset(); } catch (Exception ex) { _log.Error(ex, "Error in resetting SerialPort"); } try { TcpClient.Reset(); } catch (Exception ex) { _log.Error(ex, "Error in resetting TcpClient"); } try { UdpClient.Reset(); } catch (Exception ex) { _log.Error(ex, "Error in resetting UdpClient"); } try { Net.Reset(); } catch (Exception ex) { _log.Error(ex, "Error in resetting Net"); } try { MqttClient.Reset(); } catch (Exception ex) { _log.Error(ex, "Error in resetting MqttClient"); } try { KnxClient.Reset(); } catch (Exception ex) { _log.Error(ex, "Error in resetting KnxClient"); } try { Program.Reset(); } catch (Exception ex) { _log.Error(ex, "Error in resetting Program"); } }