Warning fixes

Mostly using try with resources to clean up docker clients