Fix logic bug where break didn't exit as many levels as intended.

Break only exits from the innermost for/select/switch. I changed it to a return and moved the post-loop cleanup to a defer.

I also ran gofmt. See https://github.com/coreos/fleet/pull/481/files?w=1 to elide whitespace changes.