code: def __return(self, shard_state, tstate, task_directive):
      
      task_directive = self._set_state(shard_state, tstate, task_directive)
      self._save_state_and_schedule_next(shard_state, tstate, task_directive)
      context.Context._set(None)
docs: Handler should always call this as the last statement.