Fixed minor issue with the "killing" of the agents