Implement Closeable where relevant

This helps to advertise closeability of resource.
Merge pull request #282 from ash2k/closeable

Implement Closeable where relevant