Introduce the simplest RestartPolicy and handling.
Merge pull request #1147 from dchen1107/restart

Introduce the simplest RestartPolicy and handling.