After browser close user logs out because the cookie which is set is session cookie.
Session cookies is erased by browser when you close it.
If you can have a cookie with expire time, it will work. May be by modifying / extending current implementation.
Such use case cannot be achieved with session cookie