killing parent process doesn't kill child
By default killing a parent process does not kill the children processes.
I suggest you look for other questions about how to kill both the parent and child using the process group (a negative PID).
A good answer about how to do this in detail can be found at Process descendants