Cancel scheduled tasks for repeating effects

This fixes a horrible task leaking issue.