Added startup, shutdown debugging