pub async fn wait_for_shutdown() -> Result<()>
Wait for a shutdown signal (SIGTERM, SIGINT, or Ctrl+C).
Returns an error if signal handling fails.