Added the saveState signal.

Signifies to the app that it should save its state for imminent
anything.