i.e., a function to kill/spawn agents when needed
i.e., a function to kill/spawn agents when needed