allowed the actor system to shutdown in the onstop method