Instance logging

Mild stop request using shutdown hooks.