Use ActorSystem.awaitTermination to ensure synchronous termination with
ActorSystemComponent.