Merged ensureClosed methods to take a Closeable, this makes binding into a xamarin project cleaner.
Merge branch 'master' of github.com:cbramley/apptentive-android
Fix formatting from pull.