If your ECM proc is locking a lot and you are running the ECM proc in and out from the program and not have ECM trigger it after send/receive you can add an INI file to the ECM folder which will kill the ecm proc if it hangs for a specified amount of time.
1) Create INI file in ECM folder named ECMPROC.INI
2) Put these parameters in:
[ECM_ORA]
Terminateaftermins=X
3) X = mins you want before ecm proc is killed.