title: Akka: Cleanup of dynamically created actors necessary when they have finished?
body: <p>I have implemented an Actor system using Akka and its Java API UntypedActor. In it, one actor (type A) starts other actors (type B) dynamically on demand, using <code>getContext().actorOf(...);</code>. Those B actors will do some computation which A doesn't really care about anymore. But I'm wondering: is it necessary to clean up those actors of type B when they have finished? If so, how?</p>
  
  <ul>
  <li>By having B actors call <code>getContext().stop(getSelf())</code> when they're done?</li>
  <li>By having B actors call <code>getSelf().tell(Actors.poisonPill());</code> when they're done? [this is what I'm using now].</li>
  <li>By doing nothing?</li>
  <li>By ...?</li>
  </ul>
  
  <p>The docs are not clear on this, or I have overlooked it. I have some basic knowledge of Scala, but the Akka sources aren't exactly entry-level stuff...</p>