Added logging of life-cycle events.

Signed-off-by: Ken Hoover <ken.hoover@mail.utoronto.ca>