Fix cloising the session for browser stack