title: How to destruct messages after calling endSimulation() in omnet++?
body: <p>I have a sensor network where nodes exchange messages and calculate some parameters on which we decide if a clone has been inserted into the network or not. If it is the case, I call the <code>endSimulation()</code> instruction in order to stop the simulation. But I noticed that some messages continue to be exchanged after the instruction <code>endsimulation()</code> and I got the message: </p>
  
  <blockquote>
    <p>undisposed object: (omnetpp::cMessage) Drones.clone.app.event2 -- check module destructor" </p>
  </blockquote>
  
  <p>Although I have a <code>finish()</code> method where I <code>cancelAndDelete(event2)</code>. I want to know how to delete event after calling <code>endSimulation()</code>.</p>