This error you got is because your chrome was closed before the completion of the task either manually or by the program.
You can check your code to verify that, You can update the Chrome/firefox driver.
You can use a try-catch block for the program to better understand the error.
Hope this helps.