i was overthinking this. the child process will closewith the parent