refactor forking a process as clean container.