close stdin and others in child keepalive process