question: public synchronized void close ( ) { if ( socket != null && ! socket . isClosed ( ) ) { try { socket . close ( ) ; } catch ( IOException e ) { logger . warn ( e . getMessage ( ) ) ; } } }
target:  Close socket. This is synchronized to prevent accidental double calls.