'Kill process that matches name. NOTE: a killed process will
continue to show up as active until the process monitor thread
has caught that it has died.
@param name: Process name
@type  name: str
@return: True if a process named name was removed from
process monitor. A process is considered killed if its stop()
method was called.
@rtype: bool'

def kill_process(self, name):

    if (not isinstance(name, basestring)):
        raise PmonException(('kill_process    takes    in    a    process    name    but    was    given:    %s' % name))
    printlog(('[%s]    kill    requested' % name))
    with self.plock:
        p = self.get_process(name)
        if p:
            try:
                p.stop([])
            except Exception as e:
                printerrlog(('Exception:    %s' % str(e)))
            return True
        else:
            return False
