Prevent heartbeat error on shutdown