diff --git a/src/com/idcanet/foei/core/impl/FoeiProcessRunnableWrapper.java b/src/com/idcanet/foei/core/impl/FoeiProcessRunnableWrapper.java index cb88570..70fa2dc 100644 --- a/src/com/idcanet/foei/core/impl/FoeiProcessRunnableWrapper.java +++ b/src/com/idcanet/foei/core/impl/FoeiProcessRunnableWrapper.java @@ -64,7 +64,10 @@ public class FoeiProcessRunnableWrapper implements Runnable { */ public void run() { FoeiProcessFactory.bindFoeiProcess(foeiProcess); - runnable.run(); - FoeiProcessFactory.unbindFoeiProcess(); + try { + runnable.run(); + } finally { + FoeiProcessFactory.unbindFoeiProcess(); + } } } \ No newline at end of file