code: public static void close(final Socket clientSocket) throws IOException
  	{
  		if (clientSocket != null && !clientSocket.isClosed())
  		{
  			clientSocket.close();
  		}
  	}
docs: Close the given {@link Socket}.
  
  @param clientSocket
  the client socket
  @throws IOException
  Signals that an I/O exception has occurred.