Close package.json after using it

This probably does not affect much but is the correct usage.