Add example code to detect death of parent (.app)