Turn off you iPad by pressing both the ON/OFF button and the Home button at the same time unitl the little time marker goes off, wait 30 seconds and press the ON/OFF button and the Home button at the same time again until the Apple Logo appears in the center of the screen. It may take a minute of two waiting time before you see your desktop display again....this should correct most cases of the iPad shutting down by itself.