catch CTRL-C and close HDF5 because impatience