Remove one usage of singleton.

Since the listener can now get a hold of the running task, we can cancel
the running task instead of the most recent one (which might be an
unrelated object).