Add heartbeat and auto-disconnect after 10 seconds