Add method to reset a task engine.