Refactor shutdown logic for Run and Attach

Signed-off-by: Sheel Choksi <sheelc@pivotallabs.com>
improve connection draining and logging

Signed-off-by: Alex Suraci <asuraci@pivotallabs.com>