juju/juju — pull request #685 by howbazaar (2014-09-05 03:25:37+00:00)
Title: Reorder the closing of resources.

There seemed to be some ordering issues with the tear down.

We should be closing any api connections first, as they depend on the state connection.
Then we should close the state connection.
Once all that is done, we should reset the mongo admin password.