Heartbeats and session timeout

I’ve set my heartbeat interval to 10 secs to do some testing. I next closed my browser. The detach Listener never gets called in this scenario. I thought the client engine would stop sending heartbeats in this scenario? The only time I saw the detached get called ( and heartbeats) is when the session timed out and then the heartbeat interval seemed to stop.

Forgot to mention I’m using Vaadin 7.1.1