set the time of death for an agent
an external pointer returned by newAgent()
or getAgent()
the time of death, a numeric value
If agent is an R6 object, then we should use either agent$leave() or leave(agent$get)
At the time of death, the agent is removed from the simulation. Calling it multiple times causes the agent to die at the earliest time.