[Issue #16] Add lifecycle events handlers