Handle wait for process exit in proc
Proc merge