I believe that to avoid disconnection of the character who fell into the trap, we had to add this line on the script.
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
doAddCondition(cid, CONDITION_INFIGHT)
doCreatureSetNoMove(cid, true)...