SocketTimeoutException: Read timed out
you are trying to connect and the server is not available or you have wrong url
or no data arrived during the timeout period. In this case no reply to the disconnect request. Clearly the library you are using is setting a read timeout, or maybe you are, and it is too short, see if you can increase it.