I would rather leave the thread sleep in there as I don't think waiting for an onComplete to shut down Akka is how you'd normally get a message (!). The idea is to keep this sample as close to the g8 template as possible. Incidentally the g8 template doesn't wait at all - it is pure coincidence that there is no race condition!