INT-2902 Fix Groovy Test Timing Problem

A message could be released by the delayer before
the scheduler was destroyed.