Also close Thrift connection on TTransportException

This related to issue #565. I should also close the client on TTransportException