Openfire broken connection detection

I am developing an instant chat Android app using openfire as server. I hope that the server can disconnect a client session even if the user close the connection abruptly, turning off WLAN for instance. However, after I searched on the Internet for substantial time, I found that openfire does not provide such feature. Nor did I find a plugin which can do the job. There is a related discussion posted 4 years ago: http://community.igniterealtime.org/thread/39760, but it remains unanswered till now.

But I am curious about the fact that openfire does support auto-disconnect for idle sessions. Isn’t detecting broken connection much easier than detecting idle connection? Hope someone could help me with this.

Thanks