Now close NetCDF file properly when skipping