Scala: Reactive Programming. Cleaned up the termination process of an actor.