Count down the latch allowing Agents to shutdown.

This pull request fixes #1.