Can Android save state on powerloss? Does Android support hibernation?

I'm interested specifically in two scenarios:


Resuming after a "nice" powerdown - ie, the phone runs out of power during normal use (say, in the middle of writing or reading email)
Resuming after a "catastrophic" powerdown - ie, say the battery accidentally is removed in the middle of some sort of activity.
The Android system does not natively support any kind of resume after a full shutdown. Individual apps can save their state at any time and restore that state when the app is loaded, but the Android system cannot store its state or the state of all of the apps for a shutdown. Theoretically speaking, the kernel could probably be modified to support some form of hibernation but the stock Android system does not.