Avoid orphan processes by exiting when parent dies