mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-31 08:18:35 +00:00
The SIGTERM handler's fire-and-forget IIFE can reject if the graceful drain or tunnel-teardown throws. Without a catch, this becomes an unhandled promise rejection. Add .catch() that logs the error and falls back to a hard stop request. Same treatment for SIGUSR1. Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>