Better wait and kill for ppid monitoring shutdown