moved process killing to the Process class and updated Worker to make use of childProcess instead of childPid