code: public boolean shutdown() {
      mServer.shutdown();
      try {
        return mServer.awaitTermination(mServerShutdownTimeoutMs, TimeUnit.MILLISECONDS);
      } catch (InterruptedException ie) {
        Thread.currentThread().interrupt();
        return false;
      } finally {
        mServer.shutdownNow();
      }
    }
docs: Shuts down the server.
  
  @return {@code true} if the server was successfully terminated
  @throws InterruptedException