rc.shutdown :
Save session code block case PUPMODE 3
put before PUPMODE 7 for better code structure.
Much more rearrangements to follow.