There is a race condition in run_proc abstraction. If a script executes before the process is registered in process database, then SIGCHLD handler will treat it as unknown process and the run_proc computation will end up timing out.
it's not really a bug. The problem was with the way I was using run_event abstraction.