Well, I had some logic to kill the adb.exe, using shelljs.exec, but well adb.exe is part of the Android SDK, if this process is working with other files or in another process.

But I can add logic, to kill the process if the exception is caught.