Another nitpick. Tell all the sites to shutdown in one loop, then wait on them in a second loop? This might make shutdown slightly faster, which matters for tests. Or not.