Bug: openfire 3.7 users doesn't disconnects using bosh

I built a small test application in a brand new installation of Openfire 3.7 nightly built on Feb 21. The application just connects and logs in a user using bosh, with the Strophe javascript api.

When I hit F5, many connections from the same user are created (random resources are set). When the page is closed, the users still logged in, even if the browser is closed.

The code I used to connect: