Adds Task#setSafeToStop.

Tasks with named executors can be terminated by the reloader if this flag is set.