Closed the hdf5 file before removing it.