Matlab Parallel Computing Toolbox mpiexec.exe process not killed after session
===

I use the Matlab Parallel Computing Toolbox and have matlabpool default to 8 in every script. Matlabpool is closed at the end of a script. This usually works fine. However, in certain scripts, the script finishes and mpiexec.exe process and sometimes smpd.exe get held up and not killed. This can cause issues. I notice that this happens to scripts with a lot of reading / writing to disk, but I'm not sure if that's the reason because the behavior is rather erratic.

Anyone can offer any experience with the issue, when it happens and how to fix it? Not knowing when I can use parallel processing is clearly not ideal.

Thanks.