Given this stack trace snippet
Caused by: java.net.SocketException: Software caused connection abort: socket write error &nbs
My server was throwing this exception in the pass 2 days and I solved it by moving the disconnecting function with:
outputStream.close(); inputStream.close(); Client.close();
To the end of the listing thread. if it will helped anyone.