Used with when open hdf5 file in warmup.py example

to handle correctly when opening\creating\appending\closing fails