On my side, I am using the notifications to launch a small java program playing a mp3 file.
This warns me when the sequence stopped, and I can snooze it by closing the app (which you cannot do if you run the sound directly).
However, I did not find the appropriate event to use.
For example, when I stop the sequence manually, the alarm is triggered.