Storing the shadow so that it can be restored after being suspended