remove the Agent static instance