close stdin,err,out in the forked process