Preliminary support for task restarting.