Warning fixes.

Mostly using try with resources to clean up docker clients
Merge pull request #137 from spotify/drewc/try-resources

Warning fixes