public void awaitStop() {
        try {
            stopLatch.await();
        } catch (InterruptedException e) {
            LOG.warn("Interrupted by another thread");
            Thread.currentThread().interrupt();
        }
    }
Waits for the Spark server to stop.
<b>Warning:</b> this method should not be called from a request handler.
src/main/java/spark/Service.java