Fixed issues with delayed tasks.

On enable/disable or initializations all delayed tasks will be canceled
now.