Ensure garden is running before stopping it (during tests)
Ensure garden is running before stopping it (during tests)

Mirrors the code from lifecyce suite, avoids an occasional deadlock when
the server isn't running and we wait for it to stop.

Signed-off-by: Alex Ley <2a41ee6808353e326aa27bd06454adf5fa8981ab@pivotal.io>

cloudfoundry-incubator/garden-linux,shashidharatd/garden-linux,cloudfoundry-incubator/garden-linux,shashidharatd/garden-linux,cloudfoundry-incubator/garden-linux,shashidharatd/garden-linux,shashidharatd/garden-linux