Hi Stefan,
I had similar problems, and I resolved it by using the same Environment object. I see that you create a new Environment every time when creating ProcessRunner, but essentially, you are using the same knowledge session in a same thread.
Try to create Environment once, and pass it to ProcessRunner, and see if it works for you.
Miljenko