msi: Make sure to keep a reference to custom action data until the actions are finished.