Wait until session is open