Create a custom keyword as below and call it either at end or at the beginning of the test case.
This will kill all instances of chrome.exe and chrome driver.exe
public class killProcess{
@Keyword
def killProcess() {
Runtime.getRuntime().exec(“taskkill /im chromedriver.exe /f”)
Runtime.getRuntime().exec(“taskkill /im chrome.exe /f”)
}
}