add helper process for lifecycle hooks
add/remove log handler at precise point in system lifecycle
Previously the handler stuck around for too long in the event of
failed startup, resulting in spurious errors.
Merge bug25594
stable to default