sim-auth: Only close open sessions

Session has to be open in order to have a valid session_id
1 file changed