public void Desconectar() { while (conexionLegacy.State != ConnectionState.Closed) conexionLegacy.Close (); }