refine first process startup procedure
modify user program, exit when main returns