public void Close() { if (_conn.State == ConnectionState.Open) { try { _conn.Close(); } catch(Exception ex) { Logger.ShowSQL(ex, null); } } }