Add heartbeat to detect when the backend goes down.