There is nothing wrong with their connection with dynamite. Nobel designed it to prevent deaths in construction and mining, because nitroglycerine was way too dangerous (and way too useful to be abandoned). It's bad reputation comes from it's use in warfare, which is undeserved because it was not very well suited to that use and was quickly replaced by other solid explosives.