Heartbeat improvements

This fixes/improves a situation where we would delete the kite even if we still get heartbeats.
"f will be called for every 10 seconds"