Sorry for the incomplete description of the topic.
To stop the agent I also include the call to the remove(agent) method of the
sparseGrid2D. It is something like:
sparseGrid2d.remove(agent);
agent.stopper.stop();
But again the reference between the agent and the grid remains.