Fixing bug where monitor process exits before child process can finish responding to kill signal.