'Terminates all still running processes started by this library.
This keyword can be used in suite teardown or elsewhere to make
sure that all processes are stopped,
By default tries to terminate processes gracefully, but can be
configured to forcefully kill them immediately. See `Terminate Process`
that this keyword uses internally for more details.'

def terminate_all_processes(self, kill=False):

    for handle in range(1, (len(self._processes) + 1)):
        if self.is_process_running(handle):
            self.terminate_process(handle, kill=kill)
    self.__init__()
