Maybe wrap the stopProcessing attribute instead?