Remove reference to last task and his arguments in engine to free memory.