Not my area of expertise, as I have thus far only used Powershell and the API for manipulations rather than monitors, but... Have you already tested having the action be nothing but, say, logging a line somewhere that you've confirmed works for some other event, to verify whether the crash is triggered by the event or by one of the actions you were attempting in response?