Add virtual destructor for Agent.