KumaScript update to gracefully exit on SIGTERM