Check integrity of h5 file

We now rely on the h5 file from previous runs, but only check if this file is available. That is not sufficient. We also have to check if the file can be used (e.g. file handle already in use, file is corrupt)