support force termination in script engine