If a socket exception or io exception is thrown, then clean up the underlying transport.
Merge pull request #565 from danp60/bugfix/close_bad_thrift_connections

Thrift connection pool does not clean up stale connections