Add memory management to util::Task.
Add more things to util::Task.