question: public void close ( ) { ReadThread t = thread ; if ( t != null ) t . closing = true ; close ( new ServiceResultException ( Bad_CommunicationError , "Socket closed by the user" ) ) ; }
target:  Close the socket connection. This method does not request CloseSecureChannel. Does nothing if it is already closed or was never opened. This method is invoked by the user and internally by read thread.