fixed a bug that when you close a session, the data is being sent won't be sent; ignored the socket error 10060;