Not to nitpick, but we must understand in order to assist.
What do you mean by "the process"?
What does this mean: "If my script detects that the process is up it wont start"
And what does this mean: "but the process stay up"? What process?
Is your script compiled?
When you debug your script, do you use DebugTrace() ? If so, do you have any user-defined functions or subroutines? If so, do you use DebugTrace(22) inside of them (to continue the debugger inside the function/subroutine)?
Are you able to post a DebugTrace log file?