Add a graceful shutdown field in protobufs.
Ensure a task has grace period in slave.
Update the mechanism the graceful shutdown flag is propagated to the executor.
Remove unnecessary include from.
Expand the test for graceful shutdown.