if (Connection.State == ConnectionState.Open || Connection.State == ConnectionState.Broken) { Connection.Close(); }