Ideally, Guided Access will turn off if the phone dies. That's why you can force restart iPhone to turn it off if you've forgotten your Guided Access passcode settings. However, it sometimes doesn't work so you may need to use third-party software to fix it.