simplify shutdown hooks
use file logging in lifecycle shutdown message