Remove all tasks and unregister events upon disable