adjust proc_exit in process.testcode like watcher.proc_exit