wait until all actors are dead to exit

Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>