@VladZen is right, the reason why it is crashing should be solved, and he is also right that you can not do this by process and say wich process is to be shut down, because depending on how you set it up, you don't know which thread is running in witch base, not from the outside of ZP anyway...