Set graceful shutdown for Jetty and join when run through -main.