Adapted from upstream PR #187 (guipratiko). Clearing instance.Events left the
instance with an empty events string after reconnecting, so CallWebhook dropped
every webhook.
Also send kill signals through safemap.TrySend/TrySendTimeout so a channel
closed by a concurrent instance delete no longer panics the process
(upstream issue #222).
Co-Authored-By: Claude Opus 5.5 <[email protected]>