added child process id tracking and killing