added awaiting of termination of Akka actor system