Let graceful shutdown work if HTTPS