public static void stop(HttpServer server) throws Exception {
    if (server != null) {
      server.stop();
    }
  }
If the server is non null, stop it
@param server to stop
@throws Exception on any failure
hbase-http/src/test/java/org/apache/hadoop/hbase/http/HttpServerFunctionalTest.java