It depends on your version and what the process is doing. From 5.0.24 it's possible to define a global timeout value in application modeller for Read, Write and Navigate stages if the target application becomes unresponsive. But Mapiex is a code stage, not application modeller, so this feature would not apply here.
I think it might be worth raising a ticket with our support team to see if they can look into it for you.