'Stop monitor subprocses.'

def stop(self, test):

    try:
        if self.fd:
            self.fd.flush()
            self.fd.close()
        os.kill(self.child_pid, 15)
    except OSError:
        pass
    if (self.__get_param('free_mem_after_test', 'no') == 'yes'):
        freemem()
