The events that led to the shuttering began in 2014, when Schneider Electric, a French multinational, bought Invensys, the company that owned the Hanover factory. Schneider then sold part of Invensys to Sun European Capital, a division of Sun Capital, a private-equity firm that specializes in, among other things, this kind of “corporate carve-out.”