Prevent heartbeat cancelled errors at shutdown.
Prevent heartbeat cancelled errors at shutdown.

Clients disconnect before the service shuts down. However, there is a short time window where the clients send out heartbeat RPCs right before shutting down, which might reach the server after it shuts down.
