Technically not possible.. Closing the browser occurs in user side and a site can not detect (and act accordingly) browser closing..
You can use another trick though: Edit the relevant templates and delete "remember me" setting from settings (make it hidden and set it to no) so your users can't choose this option and need to relogin everytime they come to your site..