ActorSystem now waits for threads to finish

While I thought the application was a piece of junk, I realized that
the async processes were not completing before the system was shutting
down. Therefore, the log messages were not being written to the console.