Script error occurs in Outlook or Internet Explorer when canceling a job

Generally when you cancel a job when you have a custom rule in place, if the rule is based on the application, we end the job incorrectly, and a script error occurs.

To work around this, you need to add a page count rule so we can finish hooking the job before canceling.
How did we do with this article?