Fixed use of wrong agent_dead function.

Change-Id: I3543306a0f7765f3acbd63518e2ecd81c5c46519