Observing local poststartup and postshutdown