public static boolean closeClientSocket ( final Socket clientSocket ) { boolean closed = true ; try { close ( clientSocket ) ; } catch ( final IOException e ) { LOGGER . error ( "IOException occured by trying to close the client socket." , e ) ; closed = false ; } finally { try { close ( clientSocket ) ; } catch ( final IOException e ) { LOGGER . error ( "IOException occured by trying to close the client socket." , e ) ; closed = false ; } } return closed ; }
Closes the given client socket .