THRIFT-1533:Make TTransport should be Closeable
Client: java
Patch: carl