Files currently open in e.g. HDFView cannot be opened in qpformat. Catch the OSError correctly and display a verbose error message.