Since Aalborg, the abnormal procedure for landing with a main gear leg not down and locked explicitly allows (but not requires) a precautionary shutdown of the engine on the affected side. Of course, if it is not known beforehand that the leg would fold, this does not help at all.