public void close() { try { if (_client != null) { _client.close(); _client = null; } } catch (Exception) { } ActiveSub._actives.Remove(_def); _running = false; }