The error leads to an alarm. With rich context the error must be named (as you point out elsewhere). 

The solution seems to be to take out the alarmsset and move the functionality to the sanitycheck.