implement Closeable to allow explicit cleanup

Attempt to address #22 
I think there's supposed to be a space between the try and the open paren.