TFileTransport missuse of closesocket on windows platform

https://issues.apache.org/jira/browse/THRIFT-2577