Add lifecycle event handlers - exception handlers