It could be an issue with your power button if it's not turning off, meaning if it does turn off, you won't be able to switch it back on again.
There are a couple of widgets on Play that look to shut the phone down, but as above, what if it doesn't turn on again?