def METHOD_NAME(config):
    global SYSTEMD_PIDS, OTHER_PIDS
    Process.kill(config, SYSTEMD_PIDS)
    Process.kill(config, OTHER_PIDS)
    # We need a pause, so that cgroup.procs gets updated.
    time.sleep(1)
    Systemd.remove_scope_slice_conf(config, SLICE, SCOPE, CONTROLLER, CONFIG_FILE_NAME)
    # Incase the error occurs before the creation of OTHER_CGNAME,
    # let's ignore the exception
    try:
        Cgroup.delete(config, CONTROLLER, OTHER_CGNAME, ignore_systemd=True)
    except RunError as re:
        if 'No such file or directory' not in re.stderr:
            raise re