msi: Protect custom actions with a structured exception handler.