Closes the HDF5 file with the hid_t reference file_id. Returns a value greater or equal to 0 upon success otherwise a negative value.