Kills the process that calls the method and all its children.
Pid of the process to kill.
Type of kill signal to be used.
Whether to kill the root process.
Optional
Optional callback to run after killing the processes.
Kills the process that calls the method and all its children.