If your device is randomly turning off, check the automatic standby setting from settings menu. You can check this by going to Settings -> General -> Advanced Settings -> Standby.
This would indicate the idle time before standby
If your device is inactive for quite sometime, it can go into deep sleep mode and you will not see any visible LED on device.
Press the power button on the remote to turn it on again.