fixing issues while terminatnig the child and adding life cycle check for group events