When it's running out of juice, an iPad should go to sleep in a particular way. The currently opened app should quit itself and the launcher should vanish, before you get a progress wheel on a black screen.
If everything is just going black suddenly then you've got a hardware problem.